package org.redmaple.core.retrieving;

/**
 * 用于存放一条检索信息
 *
 * @author Xiangyun
 *
 */
public class RedmapleCriterion {

	/**
	 * 要检索的属性名称
	 */
	private String propertyName;
	
	/**
	 * 要检索的类型
	 */
	private RetrievingType retrievingType;
	
	/**
	 * 用于检索的值
	 */
	private Object value;

	public RedmapleCriterion() {

	}

	public RedmapleCriterion(String propertyName, RetrievingType retrievingType,
			Object value) {
		super();
		this.propertyName = propertyName;
		this.retrievingType = retrievingType;
		this.value = value;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public RetrievingType getRetrievingType() {
		return retrievingType;
	}

	public void setRetrievingType(RetrievingType retrievingType) {
		this.retrievingType = retrievingType;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
}
